<?php
  defined( '_JEXEC' ) or die( 'Restricted access' );
  // Require specific controller if requested
  if($controllerName = JRequest::getWord('view', 'season')) 
  {    
    $path = JPATH_COMPONENT.DS.'controllers'.DS.strtolower($controllerName).'.php';
    if (file_exists($path)) {
      require_once $path;
    } else {
      $controller = '';
    }
  }
  require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'pbnyhelper.php';
  JController::addModelPath(JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'models');
  JHTML::_('behavior.mootools');
  $document = &JFactory::getDocument();

  $controllerName = $controllerName.'Controller';
  $controller = new $controllerName();
  
  $controller->execute( JRequest::getVar( 'task' ) );
  $controller->redirect();
?>